<?	
		global $db, $left_image, $right_image;
		
		$sql = "select * from img_group where active = 1 and alias = 'Left Banner'";
	
		//echo $sql;
		
		$left_group = $db->getRow($sql);
		
		if($left_group)
		{
			$sql = "select * from img where active = 1 and id_img_group = ".$left_group['id'];
			
			$left_image = $db->getRow($sql);
			
			//echo $sql;
		}
		$sql = "select * from img_group where active = 1 and alias = 'Right Banner'";
	
		//echo $sql;
		
		$right_group = $db->getRow($sql);
		
		if($right_group)
		{
			$sql = "select * from img where active = 1 and id_img_group = ".$right_group['id'];
			
			$right_image = $db->getRow($sql);
			
			//echo $sql;
		}
?>
<?
	include(UC_DIR.'LeftRightBanner.ctp');
?>